package com.company.cloud.club.modules.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.company.cloud.club.modules.db.dao.ClubInfoMapper;
import com.company.cloud.club.modules.db.dao.ClubMemberMapper;
import com.company.cloud.club.modules.db.domain.ClubInfo;
import com.company.cloud.club.modules.service.ClubInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * *****************************************************************************
 * <p>
 * 功能名           ：com.qxzychina..service.impl
 * 系统名           ：
 * <p>
 * *****************************************************************************
 * Modification History
 * <p>
 * Date        Name                    Reason for Change
 * ----------  ----------------------  -----------------------------------------
 * 2020/7/18     zhangxu                 Created
 */
@Service
public class ClubInfoServiceImpl extends ServiceImpl<ClubInfoMapper, ClubInfo> implements ClubInfoService {

    @Autowired
    private ClubInfoMapper clubInfoMapper;

    @Autowired
    private ClubMemberMapper clubMemberMapper;

    @Override
    public List<ClubInfo> querySug() {
        return clubInfoMapper.querySug();
    }

    @Override
    public Integer countMember(String clubId) {
        return clubMemberMapper.countMember(clubId);
    }

    @Override
    public List<ClubInfo> queryAll() {
        return clubInfoMapper.selectAll();
    }

    @Override
    public boolean removeClub(String id) {
        return clubInfoMapper.removeClub(id);
    }

    @Override
    public List<ClubInfo> selectByCondition(String condition) {
        return clubInfoMapper.selectClubByCondition(condition);
    }

}